<!DOCTYPE html>
<html>
<head>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/locale/easyui-lang-zh_CN.js"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/gray/easyui.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
	<script type="text/javascript" src="__PUBLIC__/js/add-tab.js"></script>
	<script type="text/javascript">


 
		function formatTime(val,row) {     
   	 		return new Date(parseInt(val) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");
		}     


		function formatIfread(val,row){
			if(val==0){
				return '<img src="__PUBLIC__/images/newMsg.png" style="width:30px;"/>';
			}
			if(val==1){
				return '';
			}
		}
	</script>
</head>
<body>
	<table id="tt" class="easyui-datagrid" title="消息列表" style="width:auto;height:auto"
			data-options="rownumbers:true,singleSelect:true,url:'__URL__/MsgListData',toolbar:'#tb'" rownumbers="true" pagination="true" fitColumns="true"
			fit="true" pageSize="20" pageList="[20,40,80]">
		<thead>
			<tr>
				<th field="msg_ifread" width="15" align="center" formatter="formatIfread"></th>
				<th field="msg_title" width="80" align="center">主题</th>
				<th field="msg_from" width="80" align="center">发送方</th>
				<th field="msg_content" width="80" align="center">内容</th>
				<th field="msg_time" width="80" formatter="formatTime" align="center">发送时间</th>
				

			</tr>
		</thead>
	</table>
	



</body>
</html>